#ifndef __AHT20_H__
#define __AHT20_H__

#include "iic.h"

#define AHT20_ADDR   0x38   

// #define AHT20_READ_CMD   0X71   //AHT20 read command
// #define AHT20_WRITE_CMD  0X70   //AHT20 write command


#define AHT20_FACTOR 1048576.0f  //2^20



int8_t check_aht220();

void aht20_init(void) ;  //AHT20 initial
void aht20Deal(void);  //AHT20 temperature and humidity data deal.
void aht20ReadTH(void ) ;
#endif

























